.test/main:
	cc -fsanitize=address  losu/**/*.c losu/**/**/*.c main.c -I include/ -o .test/main -O3

lib:
	cc -fsanitize=address  -O3 -shared -fPIC losu/**/*.c losu/**/**/*.c  -I include/ -o liblosu.so 
# cc -fPIC -shareddocke -O2 -std=c99 losu/**/*.c losu/**/**/*.c -I include -o liblosu.so 

losu:
	mkdir -p build
	$(LOSUCC)  -O2 $(shell ls lib/*.c) $(shell ls lib/**/*.c) $(shell ls src/**/*.c) tools/losu/*.c -I include  -o build/losu -lm -lpthread
losu.test:
	mkdir -p build
	$(LOSUCC)  -O2 $(shell ls lib/*.c) $(shell ls lib/**/*.c) $(shell ls src/**/*.c) main.c -I include  -o build/losu.test -lm 

clean:
	rm -rf .test/main
	rm -rf liblosu.so
	rm -rf build/losu